package com.zy.fcs.controller;

import com.zy.fcs.service.ZtreeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 首页Controller
 *
 * @author zhanghengchang
 * @date 2018/3/6
 */
@Controller
public class IndexController extends BaseController {

    private static final Logger logger = LoggerFactory.getLogger(IndexController.class);

    @Autowired
    private ZtreeService ztreeService;

    /**
     * 首页
     *
     * @return url
     */
    @GetMapping(value = "/")
    public String index(Model model) {
        return this.render("login");
    }

}
